package com.stylefeng.guns.modular.system.dao;

import com.stylefeng.guns.modular.system.model.Email;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 邮箱地址表 Mapper 接口
 * </p>
 *
 * @author yuzihao123
 * @since 2018-05-18
 */
public interface EmailMapper extends BaseMapper<Email> {

    int selectLastInsertId();

    Email selectByAddress(String address);

    List<Map<String, Object>> selectEmailLikeAddress(@Param("address") String address, @Param("beginTime") String beginTime, @Param("endTime") String endTime);
}
